package com.share.mongo.repository

import spock.lang.Specification
/**
 * @author caifan* @created 2021/3/31
 * description: 数据驱动测试，相同方法在不同输入输出参数的情况下执行多次
 */
class DataDrivenTest extends Specification {

//    @Unroll
    def "maximumTwoNumber"() {
        expect: ""
        Math.max(a, b) == c

        where:
        a | b || c
        1 | 9 || 9
        3 | 2 || 3
        5 | 7 || 4
    }
}
